package com.yangkun.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试")
public class TestController {


    @GetMapping("test")
    @ApiOperation("测试接口")
    @ApiImplicitParam(name = "name", value = "名字", dataType = "String", paramType = "query")
    public String test(String name) {
        System.out.println(name);
        return "okok";
    }

}
